package com.project.bean;

import java.time.LocalDate;

/**
 * 学生实体类
 */
public class StudentBean {
    /**
     * 学生编号
     */
    private Integer studentId;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private String gender;
    /**
     * 电话
     */
    private String phone;
    /**
     * 入住日期
     */
    private LocalDate date = LocalDate.now();
    /**
     * 头像
     */
    private String head;
    /**
     * 所在班级
     */
    private ClassBean clazz;
    /**
     * 所住房间
     */
    private RoomBean room;

    public StudentBean() {
    }

    public StudentBean(String name, String gender, String phone, String head, ClassBean clazz, RoomBean room) {
        this.name = name;
        this.gender = gender;
        this.phone = phone;
        this.head = head;
        this.clazz = clazz;
        this.room = room;

    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public ClassBean getClazz() {
        return clazz;
    }

    public void setClazz(ClassBean clazz) {
        this.clazz = clazz;
    }

    public RoomBean getRoom() {
        return room;
    }

    public void setRoom(RoomBean room) {
        this.room = room;
    }


    @Override
    public String toString() {
        return "StudentBean{" +
                "studentId=" + studentId +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", phone='" + phone + '\'' +
                ", date=" + date +
                ", head='" + head + '\'' +
                ", clazz=" + clazz +
                ", room=" + room +
                "}\n";
    }
}
